﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using ZK.HardWareBLL;

namespace ZK.YHP_TransManage.Test
{
    public partial class 菱声音响测试 : Form
    {
        LingShengAudioBLL lingShengAudio;
        public 菱声音响测试()
        {
            InitializeComponent();
            lingShengAudio = new LingShengAudioBLL();
        }

        private void Button1_Click(object sender, EventArgs e)
        {
            lingShengAudio.AutoStartTask(Convert.ToInt32(textBox2.Text.Trim()));
        }

        private void button2_Click(object sender, EventArgs e)
        {
            string tastListStr = lingShengAudio.GetTaskList();
            string[] array = tastListStr.Split(',');
            for (int i = 0; i < array.Length; i++)
            {
                textBox1.AppendText(array[i]);
            }
        }
    }
}
